import DefaultTheme from 'vitepress/theme'
import '@chenms-demo/theme-chalk/src/index.scss'

import cmsIcon from '@chenms-demo/components/icon'
import cmsButton from '@chenms-demo/components/button'
import cmsCheckbox from '@chenms-demo/components/checkbox'
import cmsEmpty from '@chenms-demo/components/empty'
import cmsSwitch from '@chenms-demo/components/switch'

export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
    app.use(cmsIcon)
    app.use(cmsButton)
    app.use(cmsCheckbox)
    app.use(cmsEmpty)
    app.use(cmsSwitch)
  }
}
